@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row clear">
    	<p class="col-xs-12 hotStyRed"><img src="{{ asset('images/add.png') }}" alt="活动发起" width="18" height="18" class="mr01" style="vertical-align:top">活动发起</p>
        <div class="col-xs-12 bgWhite">
        	<div class="addForm borTopBot">
	        	<form id='ajaxForm' action="{{ route('home.paypage',['activity_id'=>'0']) }}" method='post' class="form-horizontal" role="form">	        		
					 <input type="hidden" name="_token" value="{{ csrf_token() }}"> 
					<div class="input-group">
					  <span class="input-group-addon">活动名称</span>
					  <input type="text" name='name' id="name" class="form-control" placeholder="活动名称">
					</div><br>
					<div class="input-group">
					  <span class="input-group-addon">活动时间</span>
					  <input type="date" name='activity_time' id="activity_time" class="form-control" placeholder="开始时间">
					</div><!-- <br>
					<div class="input-group">
					  <span class="input-group-addon">结束时间</span>
					  <input type="date" name='end_time' class="form-control" placeholder="结束时间">
					</div> --><br>
					<div class="input-group">
					  <span class="input-group-addon">股票代码</span>
					  <input type="number" name='stock_code' id="stock_code" class="form-control" placeholder="股票代码">
					</div><br>
					<div class="input-group">
					  <span class="input-group-addon">发起金额</span>
					  <input type="number" name='money' id="money" class="form-control" placeholder="发起金额">
					  <span class="input-group-addon">.00</span>
					</div><br>
					<div class="input-group">
					  <span class="input-group-addon">活动简介</span>
					  <textarea class="form-control" name='profile' id="profile" rows="3" cols="24" id="intro" placeholder="活动简介" maxlength="200"></textarea>
					</div><br>
	        		
	        		<p class="col-xs-12 textAlign pleRig"><button id="pay_sub1" type="submit" class="btn btn-danger btn-pay">支付</button></p>
	        	</form>
				@if (count($errors) > 0)
					<div class="alert alert-danger">
						<ul>
							@foreach ($errors->all() as $error)
								<li>{{ $error }}</li>
							@endforeach
						</ul>
					</div>
				@endif
        	</div>
        </div>
    </div>
	
</div>

@endsection

